package factory.method;

import factory.method.framework.Factory;
import factory.method.framework.Product;
import factory.method.idcard.IdCardFactory;

public class Main {
    public static void main(String[] args) {
        Factory factory = new IdCardFactory();
        Product product1 = factory.create("小明", 101);
        Product product2 = factory.create("小红", 102);
        Product product3 = factory.create("小刚", 103);
        product1.use();
        product2.use();
        product3.use();
    }
}
